<?php
	namespace Annoubas\BaseBundle\Entity;
	
	use Doctrine\ORM\Mapping as ORM;
	use Symfony\Component\Validator\Constraints as Assert;
	
	/**
	 * @ORM\Entity
	 */
	
	class Orgs {
		/**
		 * @ORM\GeneratedValue(strategy="AUTO")
		 * @ORM\Id
		 * @ORM\Column(type="integer")
		 */
		private $ido;
		
		/**
		 * @ORM\Column(type="string", length="255")
		 * @Assert\NotBlank()
		 * @Assert\MinLength(3)
		 */
		private $name;
		
		/**
		 * @ORM\Column(type="string", length="255")
		 * @Assert\NotBlank()
		 * @Assert\MinLength(3)
		 */
		private $tel;
		
		/**
		 * @ORM\Column(type="string", length="255")
		 * @Assert\NotBlank()
		 * @Assert\MinLength(3)
		 */
		private $bp;
		
		/**
		 * @ORM\Column(type="string", length="255")
		 */
		private $email;
		
		/**
		 * @ORM\Column(type="string", length="255")
		 */
		private $fax;
        
        /**
		 * @ORM\Column(type="string", length="255")
		 */
		private $adress;
		
		/**
		 * @ORM\Column(type="string", length="255")
		 */
		private $webs;
		
		/**
        * @ORM\ManyToOne(targetEntity="SubRubs", inversedBy="Orgs")
        * @ORM\JoinColumn(name="subrub", referencedColumnName="idsr")
        */
        protected $subrub;
		
		/**
		 * @ORM\Column(type="string", length="255")
		 */
		private $logo;
        
        /**
		 * @ORM\Column(type="string", length="255")
		 */
		private $descrip;
        
        /**
		 * @ORM\Column(type="string", length="255")
		 */
		private $dg;
        
        /**
		 * @ORM\Column(type="integer")
		 */
		private $nbVisit;
        
        /**
        * @ORM\ManyToOne(targetEntity="Cities", inversedBy="Orgs")
        * @ORM\JoinColumn(name="city", referencedColumnName="idc")
        */
        protected $city;

    

    /**
     * Get ido
     *
     * @return integer 
     */
    public function getIdo()
    {
        return $this->ido;
    }

    /**
     * Set name
     *
     * @param string $name
     */
    public function setName($name)
    {
        $this->name = $name;
    }

    /**
     * Get name
     *
     * @return string 
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Set tel
     *
     * @param string $tel
     */
    public function setTel($tel)
    {
        $this->tel = $tel;
    }

    /**
     * Get tel
     *
     * @return string 
     */
    public function getTel()
    {
        return $this->tel;
    }

    /**
     * Set bp
     *
     * @param string $bp
     */
    public function setBp($bp)
    {
        $this->bp = $bp;
    }

    /**
     * Get bp
     *
     * @return string 
     */
    public function getBp()
    {
        return $this->bp;
    }

    /**
     * Set email
     *
     * @param string $email
     */
    public function setEmail($email)
    {
        $this->email = $email;
    }

    /**
     * Get email
     *
     * @return string 
     */
    public function getEmail()
    {
        return $this->email;
    }

    /**
     * Set fax
     *
     * @param string $fax
     */
    public function setFax($fax)
    {
        $this->fax = $fax;
    }

    /**
     * Get fax
     *
     * @return string 
     */
    public function getFax()
    {
        return $this->fax;
    }

    /**
     * Set webs
     *
     * @param string $webs
     */
    public function setWebs($webs)
    {
        $this->webs = $webs;
    }

    /**
     * Get webs
     *
     * @return string 
     */
    public function getWebs()
    {
        return $this->webs;
    }

    /**
     * Set logo
     *
     * @param string $logo
     */
    public function setLogo($logo)
    {
        $this->logo = $logo;
    }

    /**
     * Get logo
     *
     * @return string 
     */
    public function getLogo()
    {
        return $this->logo;
    }

    /**
     * Set descrip
     *
     * @param string $descrip
     */
    public function setDescrip($descrip)
    {
        $this->descrip = $descrip;
    }

    /**
     * Get descrip
     *
     * @return string 
     */
    public function getDescrip()
    {
        return $this->descrip;
    }

    /**
     * Set nbVisit
     *
     * @param integer $nbVisit
     */
    public function setNbVisit($nbVisit)
    {
        $this->nbVisit = $nbVisit;
    }

    /**
     * Get nbVisit
     *
     * @return integer 
     */
    public function getNbVisit()
    {
        return $this->nbVisit;
    }

    /**
     * Set subrub
     *
     * @param Annoubas\BaseBundle\Entity\SubRubs $subrub
     */
    public function setSubrub(\Annoubas\BaseBundle\Entity\SubRubs $subrub)
    {
        $this->subrub = $subrub;
    }

    /**
     * Get subrub
     *
     * @return Annoubas\BaseBundle\Entity\SubRubs 
     */
    public function getSubrub()
    {
        return $this->subrub;
    }

    /**
     * Set city
     *
     * @param Annoubas\BaseBundle\Entity\Cities $city
     */
    public function setCity(\Annoubas\BaseBundle\Entity\Cities $city)
    {
        $this->city = $city;
    }

    /**
     * Get city
     *
     * @return Annoubas\BaseBundle\Entity\Cities 
     */
    public function getCity()
    {
        return $this->city;
    }

    /**
     * Set dg
     *
     * @param string $dg
     */
    public function setDg($dg)
    {
        $this->dg = $dg;
    }

    /**
     * Get dg
     *
     * @return string 
     */
    public function getDg()
    {
        return $this->dg;
    }

    /**
     * Set adress
     *
     * @param string $adress
     */
    public function setAdress($adress)
    {
        $this->adress = $adress;
    }

    /**
     * Get adress
     *
     * @return string 
     */
    public function getAdress()
    {
        return $this->adress;
    }
}